home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 17 / CU Amiga Magazine's Super CD-ROM 17 (1997)(EMAP Images)(GB)[!][issue 1997-12].iso / CUCD / Programming / DiceSource / test / suplib / remove.c < prev    next >
C/C++ Source or Header  |  1992-10-25  |  251b  |  15 lines

  1.  
  2. #include <stdio.h>
  3. #include <suplib/lists.h>
  4.  
  5. void *
  6. Remove(struct Node *node)
  7. {
  8.     node->ln_Succ->ln_Pred = node->ln_Pred;
  9.     node->ln_Pred->ln_Succ = node->ln_Succ;
  10.     node->ln_Succ = NULL;
  11.     node->ln_Pred = NULL;
  12.     return((void *)node);
  13. }
  14.  
  15.